FROM registry.cn-beijing.aliyuncs.com/hub-mirrors/node:10

ARG BUILD_ENV

# 使用ENV指令使BUILD_ENV在容器运行时也能获取到
ENV BUILD_ENV=$BUILD_ENV
#master-test测试2
RUN echo "BUILD_ENV is set to ${BUILD_ENV}" 

COPY . .
RUN npm install -g cnpm@7.1.0    --registry=https://registry.npm.taobao.org  && cnpm install

CMD ["node", "app.js"]